﻿@model OdeToFood.Models.Review

@{
    ViewBag.Title = "Home Page";
}

<h2>@ViewBag.Message</h2>

<p>
You are logged in as @User.Identity.Name
</p>


<p>    
    To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
</p>


<div id="latestReview">
@Ajax.ActionLink("Click to see the lastest reviews",
                    "LatestReview",
                    new AjaxOptions{                        
                        UpdateTargetId = "latestReview",                    
                        InsertionMode = InsertionMode.Replace,                    
                        HttpMethod = "GET",
                        LoadingElementId = "progress"
                    }) 
</div>            

<div id= "progress">
    <img src="@Url.Content("~/Content/images/ajax-loader.gif")" alt = "Loader" />        
</div>  

<p></p>


@Ajax.BeginForm("Search","Home", new AjaxOptions {
                    HttpMethod = "GET",
                    InsertionMode = InsertionMode.Replace,
                    UpdateTargetId = "searchResults"})


<input type="text" name="q" />
<input type="submit" value="Searc" />



<table id="searchResults">
</table>

  






